import logging
from .stt import SpeechRecognizer
from .intent import IntentWriter

logging.basicConfig(format='[%(asctime)-15s] [%(funcName)s()][%(levelname)s] %(message)s')
logging.getLogger().setLevel(logging.DEBUG)
iw = IntentWriter()
sr = SpeechRecognizer()
for text, finish in sr:
    iw.input(text, finish)
